package com.businessportal.web.ckeditor.filebrowser;

/**
 * Created by Vadim on 6/27/14.
 */
public class CommandProcessor {

    ICommand cmd;

    public CommandProcessor(ICommand cmd){
        this.cmd = cmd;
    }

    public String Process(){

        if(CommandDetector.CkCommand.Init == cmd.getId()){
            return ProcessInitCommand();
        } else if(CommandDetector.CkCommand.GetFolders == cmd.getId()){
            return ProcessGetFolderCommand();
        } else if(CommandDetector.CkCommand.GetFiles == cmd.getId()){
            return ProcessGetFilesCommand();
        }

        return null;
    }


    private String ProcessInitCommand(){
        return cmd.getRespond();
    }

    private String ProcessGetFolderCommand(){
        return null;
    }
    private String ProcessGetFilesCommand(){
        return null;
    }
}
